from pydantic import BaseModel
from pydantic.generics import GenericModel
from typing import List, Dict, Union, Generic, TypeVar, Optional
from com.schemas.newsbase import NewsBase

class ItemModel(BaseModel):
    name: str
    hash: str
    cointype: str
    description: str
    txcount: int


class ResultVoStr(BaseModel):
    code: int = 200
    data: str
    msg: str = "操作成功!"


class ResultVoList(BaseModel):
    code: int = 200
    data: List
    msg: str = "操作成功!"


class ResultVoDict(BaseModel):
    code: int = 200
    data: Dict
    msg: str = "操作成功!"

class ResultVoNews(BaseModel):
    code: int = 200
    data: List[NewsBase]
    msg: str = "操作成功!"